package com.qa.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qa.IDao.Temp_lbtMapper;
import com.qa.IDao.Temp_user_useMapper;
import com.qa.pojo.Temp_WqtWeb;
import com.qa.pojo.Temp_lbt;
import com.qa.pojo.Temp_user_use;
import com.qa.pojo.Temp_zzttWeb;
import com.qa.service.ITempService;

@Service("tempService")
public class ITempServiceImpl implements ITempService {
	@Resource
	private Temp_lbtMapper hisDao;

	@Resource
	private Temp_user_useMapper temp_user_useDao;

	@Override
	public int insert(Temp_lbt t) {
		// TODO Auto-generated method stub
		return hisDao.insert(t);
	}

	@Override
	public List<Temp_lbt> selectByUsersid(int usersid) {
		return hisDao.selectByPrimaryKey(usersid);
	}

	@Override
	public int deleteTemp(int tLbttempid) {
		// TODO Auto-generated method stub
		return hisDao.deleteByPrimaryKey(tLbttempid);
	}

	@Override
	public int deleteRe(int usersid, int tLbttempid, String projectname) {
		// TODO Auto-generated method stub
		int aString = temp_user_useDao.deleteByPrimaryKey(tLbttempid, usersid,
				projectname);
		return aString;
	}

	@Override
	public int deleteRe(int usersid) {
		int aString = temp_user_useDao.deleteByUsersid(usersid);
		return aString;
	}

	@Override
	public int insert(Temp_user_use use) {
		// TODO Auto-generated method stub
		int aString = temp_user_useDao.insert(use);
		return aString;
	}

	@Override
	public Temp_user_use selectReByUsersid(int usersid) {
		// TODO Auto-generated method stub
		return temp_user_useDao.selectByPrimaryKey(usersid);
	}

	@Override
	public int insertWqtWeb(String wqtweburl, String userName,
			String userPassword, String v_qy_Num, int usersid) {
		// TODO Auto-generated method stub
		return hisDao.insertWqtWeb(wqtweburl, userName, userPassword, v_qy_Num,
				usersid);
	}

	@Override
	public List<Temp_WqtWeb> selectWqtWebByUsersid(int usersid) {
		// TODO Auto-generated method stub
		return hisDao.selectWqtWebByUsersid(usersid);
	}

	@Override
	public int deleteWqtTemp(int tempid) {
		// TODO Auto-generated method stub
		return hisDao.deleteWqtTemp(tempid);
	}

	@Override
	public int insertzzttWeb(String zzttweburl, String zzttuserName,
			String zzttuserPassword, String zzttenamesubcomp, int usersid) {
		// TODO Auto-generated method stub
		return hisDao.insertzzttWeb(zzttweburl, zzttuserName, zzttuserPassword,
				zzttenamesubcomp, usersid);
	}

	@Override
	public List<Temp_zzttWeb> selectzzttWebByUsersid(int usersid) {
		// TODO Auto-generated method stub
		return hisDao.selectzzttWebByUsersid(usersid);
	}

	@Override
	public int deletezzttTemp(int tempid) {
		// TODO Auto-generated method stub
		return hisDao.deletezzttTemp(tempid);
	}
}
